require 'rubygems'
gem 'soap4r'
require 'soap/wsdlDriver'
require 'soap/header/simplehandler'
require 'defaultDriver.rb'
require 'authStub.rb'
require 'WSHelpers.rb'

#Async update options
#options = CreateOptions.new(nil,nil,nil,nil,nil,nil,nil,nil,'Asynchronous')
#Upsert update options
options = UpdateOptions.new(nil,nil,SaveOption.new('ContentArea','UpdateAdd'),nil,nil,nil,nil,nil,nil,nil,nil,nil)
#options = nil

customerKey = 'API-Test-1'
desc = customerKey + ' - Made through the API'
content = '<p><b>Now</b> is the time for all <b>good men</b> to come to the <b>aid you country</b></p>'
content = content + content + content + content + content

conArea = ContentArea.new(nil,nil,nil,nil,nil,nil,nil,customerKey,nil,nil,nil,content,nil,nil,nil,nil,nil,nil)
apiObj = conArea

resp = $driver.update(UpdateRequest.new(options,[*apiObj]))